FROM openjdk:11

WORKDIR /app

# 安装 tzdata
RUN apt-get update && \
    apt-get install -y tzdata

# 设置时区
ENV TZ=UTC

# 复制第一阶段构建的JAR文件到最终镜像中
COPY --from=builder /app/feign-api/target/feign-api.jar feign-api.jar

# 定义容器对外暴露的端口
EXPOSE 8088
EXPOSE 8888

CMD ["java","-jar","feign-api.jar.jar"]


